home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_14 / PlaceObject2_448_365 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  690 b   |  33 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused)
  3.    {
  4.       return undefined;
  5.    }
  6.    if(!_root.car.onfloor)
  7.    {
  8.       if(Key.isDown(37))
  9.       {
  10.          _visible = true;
  11.          if(_root.sound)
  12.          {
  13.             if(!sound)
  14.             {
  15.                _root.steamSideB.start(0,99999);
  16.                sound = true;
  17.             }
  18.          }
  19.       }
  20.    }
  21.    if(!Key.isDown(37) or _root.car.onfloor or _root.fake._rotation < -20 or _root.fake._rotation > 20)
  22.    {
  23.       _visible = false;
  24.    }
  25.    if(!Key.isDown(37) or _root.car.onfloor)
  26.    {
  27.       _root.steamSideB.stop();
  28.       sound = false;
  29.    }
  30.    _X = _root.fake._x + 30;
  31.    _Y = _root.fake._y - 14;
  32. }
  33.